<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
 
</head>

<body>

  <div id="box">
    <h1 id="h1">你好,{{name}}</h1>
    {{text}},{{obj.content}},{{num+100}},{{num===100}},{{num===1?'我是谁':'我是喷火龙'}},{{arr[4]}}, {{say()}}

  </div>


  <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.7.14/vue.js"></script>
  <!-- <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.7.14/vue.min.js"></script> -->

  <script>

    const vm1 = new Vue({
      el: '#h1',
      data: {
        name: 'xiaojue',
      }
    })
    const vm = new Vue({
      el: '#box',

      data: {
        num: 1,
        text: '窗含西岭千秋雪',
        obj: {
          content: '门泊东吴万里船'
        },
        arr: [1, 3, 5, 7, 9],
        say: function () {
          console.log(11);
        }
      }
    })


    console.log(vm.say);

  </script>

</body>

</html>